home *** CD-ROM | disk | FTP | other *** search
/ Champak 128 / Vol 128 (Damaged).iso / games / make_mac.swf / scripts / frame_2974 / DoAction_3.as < prev    next >
Encoding:
Text File  |  2011-03-26  |  21.6 KB  |  758 lines

  1. DefaultSetting = function()
  2. {
  3.    var _loc1_ = _root;
  4.    dishStatus1 = 1;
  5.    dishStatus2 = 1;
  6.    dishStatus3 = 1;
  7.    _loc1_.dupNo = 2000;
  8.    _loc1_.vessel_pot.pot_kettle._visible = false;
  9.    _loc1_.dishArrow._visible = false;
  10.    _loc1_.dishArrow.stop();
  11.    nowFood.vessel = false;
  12.    _loc1_.zzazang = false;
  13.    _loc1_.noodle = false;
  14.    _loc1_.cookComplete = false;
  15.    _loc1_.foodScore = 0;
  16.    _loc1_.spiceScore = 0;
  17.    _loc1_.wheat = false;
  18. };
  19. FoodTree = function()
  20. {
  21. };
  22. FoodTree.prototype.vegetable = false;
  23. FoodTree.prototype.meat = false;
  24. FoodTree.prototype.noodle = false;
  25. FoodTree.prototype.garlic = false;
  26. FoodTree.prototype.chun = false;
  27. FoodTree.prototype.sugar = false;
  28. FoodTree.prototype.oil = false;
  29. FoodTree.prototype.kettle = false;
  30. FoodTree.prototype.dish1 = false;
  31. FoodTree.prototype.dish2 = false;
  32. FoodTree.prototype.dish3 = false;
  33. FoodTree.prototype.vessel = false;
  34. FoodTree.prototype.wheat = false;
  35. FoodTree.prototype._wheat = false;
  36. MetaGauge = function(gaugeAction)
  37. {
  38.    var _loc1_ = _root;
  39.    switch(gaugeAction)
  40.    {
  41.       case "PLAY":
  42.          _loc1_.playMode = "COOK";
  43.          this.mc_gauge.gaugeMask.gotoAndPlay(2);
  44.          break;
  45.       case "STOP":
  46.          _loc1_.playMode = "STOP";
  47.          this.mc_gauge.gaugeMask.stop();
  48.          stopAllSounds();
  49.          _loc1_["vessel_" + nowFood.vessel].gotoAndStop(1);
  50.          CookMeterial(nowFood.vessel);
  51.          break;
  52.       default:
  53.          trace("∞ùÉ러");
  54.    }
  55. };
  56. MetaCookButton = function()
  57. {
  58.    var _loc1_ = _root;
  59.    var _loc2_ = this;
  60.    trace("δ▓äφè╝∞áò∞¥ÿ");
  61.    _loc1_.btn_takeOut._visible = false;
  62.    _loc2_.btn_takeOut.onRelease = function()
  63.    {
  64.       ToggleButton(true);
  65.       _root.MetaGauge("STOP");
  66.       this._visible = false;
  67.       _root.btn_takeOff._visible = true;
  68.    };
  69.    _loc2_.btn_takeOff.onRelease = function()
  70.    {
  71.       ToggleButton(false);
  72.       trace("∞Üö리∞ï£∞₧æ");
  73.       _root.MetaGauge("PLAY");
  74.       this._visible = false;
  75.       _root.btn_takeOut._visible = true;
  76.    };
  77. };
  78. RipeFood = function(foodName, ripePoint)
  79. {
  80. };
  81. ToggleButton = function(toggleType)
  82. {
  83.    var _loc1_ = this;
  84.    var _loc2_ = toggleType;
  85.    _loc1_.btn_vegetable.enabled = _loc2_;
  86.    _loc1_.btn_meat.enabled = _loc2_;
  87.    _loc1_.btn_noodle.enabled = _loc2_;
  88.    _loc1_.btn_garlic.enabled = _loc2_;
  89.    _loc1_.btn_chun.enabled = _loc2_;
  90.    _loc1_.btn_sugar.enabled = _loc2_;
  91.    _loc1_.btn_oil.enabled = _loc2_;
  92.    _loc1_.btn_kettle.enabled = _loc2_;
  93. };
  94. ToggleCookButton = function(toggleType)
  95. {
  96.    this.btn_takeOff.enabled = toggleType;
  97.    this.btn_takeOut.enabled = toggleType;
  98. };
  99. MetaHelp = function()
  100. {
  101.    var _loc1_ = this;
  102.    _loc1_.mc_skillTree._visible = false;
  103.    _loc1_.mc_skillTree.btn_skillClose.onRelease = function()
  104.    {
  105.       this._parent._visible = false;
  106.    };
  107.    _loc1_.mc_skillTree.btn_skillClose.onRollOver = function()
  108.    {
  109.       this.gotoAndStop(2);
  110.    };
  111.    _loc1_.mc_skillTree.btn_skillClose.onRollOut = function()
  112.    {
  113.       this.gotoAndStop(1);
  114.    };
  115.    _loc1_.mc_skillTree.btn_skillClose.onReleaseOutside = function()
  116.    {
  117.       this.gotoAndStop(1);
  118.    };
  119.    _loc1_.btn_help.onRelease = function()
  120.    {
  121.       _root.mc_skillTree._visible = true;
  122.    };
  123.    _loc1_.btn_help.onRollOver = function()
  124.    {
  125.       this.gotoAndStop(2);
  126.    };
  127.    _loc1_.btn_help.onRollOut = function()
  128.    {
  129.       this.gotoAndStop(1);
  130.    };
  131.    _loc1_.btn_help.onReleaseOutside = function()
  132.    {
  133.       this.gotoAndStop(1);
  134.    };
  135. };
  136. MetaItemAction = function(itemName)
  137. {
  138.    var _loc1_ = this;
  139.    var _loc2_ = _root;
  140.    var _loc3_ = itemName;
  141.    trace("∞òä∞¥┤φ࣠δ▓äφè╝ ∞áò∞¥ÿ " + _loc3_);
  142.    _loc2_["btn_" + _loc3_].onRollOver = function()
  143.    {
  144.       trace(this);
  145.       this.gotoAndStop(2);
  146.    };
  147.    _loc2_["btn_" + _loc3_].onRollOut = function()
  148.    {
  149.       this.gotoAndStop(1);
  150.    };
  151.    _loc2_["btn_" + _loc3_].onReleaseOutside = function()
  152.    {
  153.       this.gotoAndStop(1);
  154.    };
  155.    _loc2_["btn_" + _loc3_].onPress = function()
  156.    {
  157.       this.gotoAndStop(1);
  158.       _root.DupDragClip(this);
  159.    };
  160.    _loc2_.btn_vegetable.onRollOver = function()
  161.    {
  162.       this.gotoAndStop(2);
  163.    };
  164. };
  165. MetaItemAction2 = function(itemName, parentFr, childFr)
  166. {
  167.    var _loc1_ = this;
  168.    var _loc2_ = itemName;
  169.    _loc1_["btn_" + _loc2_].onRollOver = function(exception)
  170.    {
  171.       var _loc1_ = Number(childFr) + 1;
  172.       this.mc_dish.gotoAndStop(_loc1_);
  173.    };
  174.    _loc1_["btn_" + _loc2_].onRollOut = function(exception)
  175.    {
  176.       this.mc_dish.gotoAndStop(childFr);
  177.    };
  178.    _loc1_["btn_" + _loc2_].onReleaseOutside = function(exception)
  179.    {
  180.       this.mc_dish.gotoAndStop(childFr);
  181.    };
  182.    _loc1_["btn_" + _loc2_].onPress = function(exception)
  183.    {
  184.       this.mc_dish.gotoAndStop(childFr);
  185.       _root.DupDragClip(this,parentFr,childFr);
  186.    };
  187. };
  188. MetaItemAction3 = function(itemName, parentFr, childFr)
  189. {
  190.    var _loc1_ = this;
  191.    var _loc2_ = itemName;
  192.    _loc1_["vessel_" + _loc2_].onRollOver = function(exception)
  193.    {
  194.       var _loc1_ = Number(childFr) + 1;
  195.       this.mc_dish.gotoAndStop(_loc1_);
  196.    };
  197.    _loc1_["vessel_" + _loc2_].onRollOut = function(exception)
  198.    {
  199.       this.mc_dish.gotoAndStop(childFr);
  200.    };
  201.    _loc1_["vessel_" + _loc2_].onReleaseOutside = function(exception)
  202.    {
  203.       this.mc_dish.gotoAndStop(childFr);
  204.    };
  205.    _loc1_["vessel_" + _loc2_].onPress = function(exception)
  206.    {
  207.       this.mc_dish.gotoAndStop(childFr);
  208.       _root.DupDragClip(_root.drag_wheat,parentFr,childFr);
  209.    };
  210. };
  211. DupDragClip = function(insName, parentFr, childFr)
  212. {
  213.    var _loc1_ = _root;
  214.    var _loc2_ = this;
  215.    _loc1_.dupNo = _loc1_.dupNo + 1;
  216.    _loc1_.newDupName = "nowDragClip" + _loc1_.dupNo;
  217.    _loc1_.foodMaterial = insName.substr(13,-1);
  218.    trace("_root.foodMaterial : " + _loc1_.foodMaterial);
  219.    if(foodMaterial == "sorce" or foodMaterial == "sugar")
  220.    {
  221.       var _loc3_ = "drag_" + _loc1_.foodMaterial;
  222.       duplicateMovieClip(_loc3_,_loc1_.newDupName,16384 + _loc1_.dupNo);
  223.       _loc2_[_loc1_.newDupName]._x = _xmouse - 30;
  224.       _loc2_[_loc1_.newDupName]._y = _ymouse - 30;
  225.    }
  226.    else if(foodMaterial == "_wheat")
  227.    {
  228.       _loc3_ = "drag" + _loc1_.foodMaterial;
  229.       duplicateMovieClip(_loc3_,_loc1_.newDupName,16384 + _loc1_.dupNo);
  230.       _loc2_[_loc1_.newDupName]._x = _xmouse;
  231.       _loc2_[_loc1_.newDupName]._y = _ymouse;
  232.    }
  233.    else
  234.    {
  235.       duplicateMovieClip(insName,_loc1_.newDupName,16384 + _loc1_.dupNo);
  236.    }
  237.    takeSound.start();
  238.    _loc2_[_loc1_.newDupName].startDrag(false);
  239.    if(parentFr != undefine)
  240.    {
  241.       _loc1_[_loc1_.newDupName].gotoAndStop(parentFr);
  242.       _loc1_[_loc1_.newDupName].mc_dish.gotoAndStop(childFr);
  243.    }
  244.    _loc2_.godHand.swapDepths(_loc1_.dupNo + 10);
  245. };
  246. RemoveDragClip = function(insName)
  247. {
  248.    var _loc1_ = _root;
  249.    _loc1_[insName].stopDrag();
  250.    removeMovieClip(_loc1_[insName]);
  251.    delete _loc1_.newDupName;
  252.    delete _loc1_.foodMaterial;
  253. };
  254. CheckCooking = function(vesselName, meterialName)
  255. {
  256.    var _loc1_ = meterialName;
  257.    var _loc2_ = vesselName;
  258.    var _loc3_ = _root;
  259.    trace("vesselName : " + _loc2_);
  260.    trace("meterialName : " + _loc1_);
  261.    switch(_loc2_)
  262.    {
  263.       case "pot":
  264.          switch(_loc1_)
  265.          {
  266.             case "vegetable":
  267.                BadMeterial();
  268.                break;
  269.             case "meat":
  270.                BadMeterial();
  271.                break;
  272.             case "noodle":
  273.                if(_loc3_.nowFood.kettle != undefine)
  274.                {
  275.                   PutInMeterial(_loc2_,_loc1_,"water_kettle");
  276.                }
  277.                else
  278.                {
  279.                   PutInMeterial(_loc2_,_loc1_);
  280.                }
  281.                break;
  282.             case "garlic":
  283.                BadMeterial();
  284.                break;
  285.             case "chun":
  286.                BadMeterial();
  287.                break;
  288.             case "oil":
  289.                PutInMeterial(_loc2_,_loc1_);
  290.                SetIntV(800,_loc2_,_loc1_,"defaultPan");
  291.                break;
  292.             case "_wheat":
  293.                PutInMeterial(_loc2_,_loc1_);
  294.                SetIntV(800,_loc2_,_loc1_,"defaultPan");
  295.                break;
  296.             case "kettle":
  297.                if(_loc3_.nowFood.noodle and _loc3_.nowFood.kettle)
  298.                {
  299.                   PutInMeterial(_loc2_,_loc1_,"water_kettle");
  300.                   _loc3_["vessel_" + _loc2_].pot_kettle._visible = true;
  301.                   SetIntV(800,_loc2_,_loc1_);
  302.                }
  303.                else if(_loc3_.nowFood.noodle)
  304.                {
  305.                   PutInMeterial(_loc2_,_loc1_,"noodle");
  306.                   _loc3_["vessel_" + _loc2_].pot_kettle._visible = true;
  307.                   SetIntV(800,_loc2_,_loc1_,"water_kettle");
  308.                }
  309.                else
  310.                {
  311.                   PutInMeterial(_loc2_,_loc1_);
  312.                   SetIntV(800,_loc2_,_loc1_,"water");
  313.                }
  314.                break;
  315.             case "sugar":
  316.                BadMeterial();
  317.                break;
  318.             case "pineApple":
  319.                BadMeterial();
  320.                break;
  321.             default:
  322.                _loc3_["vessel_" + _loc2_].pot_kettle._visible = false;
  323.                trace("Pot default Mode : " + _loc1_);
  324.                DishLader("Pot",_loc1_,_loc3_.newDupName);
  325.          }
  326.          break;
  327.       case "pan":
  328.          switch(_loc1_)
  329.          {
  330.             case "ketchup":
  331.                PutInMeterial(_loc2_,_loc1_);
  332.                SetIntV(800,_loc2_,_loc1_,"defaultPan");
  333.                break;
  334.             case "vegetable":
  335.                PutInMeterial(_loc2_,_loc1_);
  336.                SetIntV(800,_loc2_,_loc1_,"defaultPan");
  337.                break;
  338.             case "meat":
  339.                BadMeterial();
  340.                break;
  341.             case "_wheat":
  342.                BadMeterial();
  343.                break;
  344.             case "sorce":
  345.                PutInMeterial(_loc2_,_loc1_);
  346.                SetIntV(800,_loc2_,_loc1_,"defaultPan");
  347.                break;
  348.             case "garlic":
  349.                _loc3_.spiceScore += 10;
  350.                break;
  351.             case "pineApple":
  352.                PutInMeterial(_loc2_,_loc1_);
  353.                SetIntV(800,_loc2_,_loc1_,"defaultPan");
  354.                break;
  355.             case "oil":
  356.                PutInMeterial(_loc2_,_loc1_);
  357.                SetIntV(1000,_loc2_,_loc1_,"defaultPan");
  358.                _loc3_.spiceScore += 10;
  359.                break;
  360.             case "kettle":
  361.                PutInMeterial(_loc2_,_loc1_);
  362.                SetIntV(800,_loc2_,_loc1_,"defaultPan");
  363.                break;
  364.             case "sugar":
  365.                PutInMeterial(_loc2_,_loc1_);
  366.                SetIntV(800,_loc2_,_loc1_,"defaultPan");
  367.                _loc3_.spiceScore += 10;
  368.                break;
  369.             default:
  370.                trace("Pan default Mode : " + _loc1_);
  371.                DishLader("Pan",_loc1_,_loc3_.newDupName);
  372.          }
  373.          break;
  374.       case "dish3":
  375.          trace("-----------");
  376.          trace("∞Öä∞ä▒ ∞ï£δÅä");
  377.          trace(_loc1_);
  378.          trace(_loc3_["btn_" + _loc1_]._currentframe);
  379.          trace("-----------");
  380.          if(_loc3_["btn_" + _loc1_]._currentframe == 2)
  381.          {
  382.             if(_loc1_ == "dish1")
  383.             {
  384.                trace("δ░ÇΩ░Çδú¿Ω│áΩ╕░φèÇΩ╣Ç");
  385.                _loc3_.noodle = true;
  386.                if(_loc3_.zzazang)
  387.                {
  388.                   _loc3_.cookComplete = true;
  389.                   _loc3_.vessel_dish3.gotoAndStop(4);
  390.                }
  391.                else
  392.                {
  393.                   _loc3_.vessel_dish3.gotoAndStop(3);
  394.                }
  395.             }
  396.             else if(_loc1_ == "dish2")
  397.             {
  398.                trace("∞º£∞₧Ñ");
  399.                _loc3_.zzazang = true;
  400.                if(_loc3_.noodle)
  401.                {
  402.                   _loc3_.cookComplete = true;
  403.                   _loc3_.vessel_dish3.gotoAndStop(4);
  404.                }
  405.                else
  406.                {
  407.                   _loc3_.vessel_dish3.gotoAndStop(2);
  408.                }
  409.             }
  410.          }
  411.          else
  412.          {
  413.             BadMeterial();
  414.          }
  415.          break;
  416.       case "wheat":
  417.          if(!_loc3_.wheat)
  418.          {
  419.             if(_loc1_ !== "meat")
  420.             {
  421.                trace("δ░ÇΩ░Çδú¿∞¥┤∞âü");
  422.                BadMeterial();
  423.             }
  424.             else
  425.             {
  426.                trace("δ░ÇΩ░Çδú¿Ω│áΩ╕░δ░ÿ∞ú╜");
  427.                _loc3_.wheat = true;
  428.                vessel_wheat.gotoAndStop(4);
  429.                MetaItemAction3("wheat",4,4);
  430.             }
  431.          }
  432.          break;
  433.       default:
  434.          BadMeterial();
  435.    }
  436. };
  437. PutInMeterial = function(vesselName, meterialName, returnFr)
  438. {
  439.    var _loc1_ = vesselName;
  440.    var _loc2_ = meterialName;
  441.    var _loc3_ = _root;
  442.    nowFood[_loc2_] = true;
  443.    nowFood.vessel = _loc1_;
  444.    if(returnFr != undefine)
  445.    {
  446.       this["vessel_" + _loc1_].gotoAndStop(returnFr);
  447.    }
  448.    else
  449.    {
  450.       this["vessel_" + _loc1_].gotoAndStop(_loc2_);
  451.    }
  452.    if(_loc1_ == "pot" and _loc2_ == "kettle")
  453.    {
  454.       _loc3_["vessel_" + _loc1_].pot_kettle._visible = true;
  455.    }
  456.    else
  457.    {
  458.       _loc3_["vessel_" + _loc1_].pot_kettle._visible = false;
  459.    }
  460.    if(_loc1_ == "pot")
  461.    {
  462.       _loc3_.nowPot[_loc2_] = true;
  463.    }
  464.    else if(_loc1_ == "pan")
  465.    {
  466.       _loc3_.nowPan[_loc2_] = true;
  467.    }
  468. };
  469. MakeFood = function(btnName, frNo, gradeFrNo, gaugePoint)
  470. {
  471.    var _loc1_ = btnName;
  472.    var _loc2_ = frNo;
  473.    trace(_loc1_ + " ∞¥î∞ï¥δ¼╝∞â¥∞ä▒ " + _loc2_);
  474.    trace(gradePoint);
  475.    _root["btn_" + _loc1_].gotoAndStop(_loc2_);
  476.    _root["btn_" + _loc1_].mc_dish.gotoAndStop(gradeFrNo);
  477.    MetaItemAction2(_loc1_,_loc2_,gradeFrNo);
  478. };
  479. CookMeterial = function(vesselName)
  480. {
  481.    var _loc1_ = this;
  482.    trace("Ω▓î∞¥┤∞ºÇ ∞áòδÅä : " + _loc1_.mc_gauge.gaugeMask._currentframe);
  483.    if(_loc1_.mc_gauge.gaugeMask._currentframe <= 10)
  484.    {
  485.       var _loc2_ = 0;
  486.       var _loc3_ = 1;
  487.    }
  488.    else if(_loc1_.mc_gauge.gaugeMask._currentframe > 10 and _loc1_.mc_gauge.gaugeMask._currentframe <= 40)
  489.    {
  490.       _loc2_ = 30;
  491.       _loc3_ = 1;
  492.    }
  493.    else if(_loc1_.mc_gauge.gaugeMask._currentframe > 40 and _loc1_.mc_gauge.gaugeMask._currentframe <= 90)
  494.    {
  495.       _loc2_ = 70;
  496.       _loc3_ = 1;
  497.    }
  498.    else if(_loc1_.mc_gauge.gaugeMask._currentframe > 90 and _loc1_.mc_gauge.gaugeMask._currentframe <= 111)
  499.    {
  500.       _loc2_ = 100;
  501.       _loc3_ = 1;
  502.    }
  503.    else if(_loc1_.mc_gauge.gaugeMask._currentframe > 111 and _loc1_.mc_gauge.gaugeMask._currentframe <= 120)
  504.    {
  505.       _loc2_ = 70;
  506.       _loc3_ = 4;
  507.    }
  508.    else if(_loc1_.mc_gauge.gaugeMask._currentframe > 120 and _loc1_.mc_gauge.gaugeMask._currentframe <= 130)
  509.    {
  510.       _loc2_ = 30;
  511.       _loc3_ = 4;
  512.    }
  513.    else
  514.    {
  515.       _loc2_ = 0;
  516.       _loc3_ = 4;
  517.    }
  518.    if(vesselName == "pot")
  519.    {
  520.       trace("nowPot._wheat : " + nowPot._wheat);
  521.       trace("nowPot.wheat : " + nowPot.wheat);
  522.       trace("nowPot.oil : " + nowPot.oil);
  523.       if(_loc1_.nowPot.kettle and _loc1_.nowPot.noodle)
  524.       {
  525.          var meterialScore = 100;
  526.          MakeFood("dish1",3,_loc3_,_loc2_,"boil_vegetable");
  527.       }
  528.       else if(_loc1_.nowPot.kettle and !_loc1_.nowPot.noodle)
  529.       {
  530.          BadMeterial();
  531.       }
  532.       else if(!_loc1_.nowPot.kettle and _loc1_.nowPot.noodle)
  533.       {
  534.          var meterialScore = 50;
  535.          MakeFood("dish1",3,_loc3_,_loc2_,"boil_vegetable");
  536.       }
  537.       else if(_loc1_.nowPot._wheat and !_loc1_.nowPot.oil)
  538.       {
  539.          var meterialScore = 50;
  540.          MakeFood("dish1",2,_loc3_,_loc2_,"boil_vegetable");
  541.       }
  542.       else if(_loc1_.nowPot._wheat and _loc1_.nowPot.oil)
  543.       {
  544.          var meterialScore = 100;
  545.          MakeFood("dish1",2,_loc3_,_loc2_,"boil_vegetable");
  546.       }
  547.       else
  548.       {
  549.          BadMeterial();
  550.       }
  551.       _root.nowPot = new FoodTree();
  552.       Vessel_Info("Pot");
  553.       _root.noodleScore = _loc2_ + meterialScore;
  554.    }
  555.    else
  556.    {
  557.       trace("----------------");
  558.       trace("----------------");
  559.       trace(_loc1_.nowPan.chun);
  560.       trace(_loc1_.nowPan.dish1);
  561.       trace(_loc1_.nowPan.dish2);
  562.       trace("----------------");
  563.       trace("----------------");
  564.       if(_root.nowPan.chun and (_loc1_.nowPan.vegetable or _loc1_.nowPan.meat))
  565.       {
  566.          trace("δ│╢∞¥î∞º£∞₧Ñ-φò£δ▓ê∞ùÉ δïñ φä╕∞û┤ δäú∞¥Ç");
  567.          var meterialScore = 30;
  568.          MakeFood("dish2",3,_loc3_,_loc2_,"broil_zzazang");
  569.       }
  570.       else if(_loc1_.nowPan.chun and !_loc1_.nowPan.vegetable and !_loc1_.nowPan.dish1)
  571.       {
  572.          trace("δ│╢∞¥î∞╢ÿ∞₧Ñ");
  573.          var meterialScore = 30;
  574.          MakeFood("dish2",2,_loc3_,_loc2_,"broil_chun");
  575.       }
  576.       else if(_loc1_.nowPan.sorce and _loc1_.nowPan.vegetable)
  577.       {
  578.          trace("∞ò╝∞▒ä+∞åî∞èñ");
  579.          var meterialScore = 50;
  580.          if(_loc1_.nowPan.sugar)
  581.          {
  582.             meterialScore += 20;
  583.          }
  584.          if(_loc1_.nowPan.pineApple)
  585.          {
  586.             meterialScore += 10;
  587.          }
  588.          if(_loc1_.nowPan.ketchup)
  589.          {
  590.             meterialScore += 20;
  591.          }
  592.          MakeFood("dish2",2,_loc3_,_loc2_,"broil_sorce");
  593.       }
  594.       else if(_loc1_.nowPan.dish2 == "chunzang" and _loc1_.nowPan.dish1)
  595.       {
  596.          trace("∞º£∞₧Ñ2(∞ò╝∞▒äδ│╢∞¥î+δ│╢∞¥î∞╢ÿ∞₧Ñ)");
  597.          var meterialScore = 100;
  598.          MakeFood("dish2",3,_loc3_,_loc2_,"broil_zzazang");
  599.       }
  600.       else if(_loc1_.nowPan.dish2 == "chunzang" and (_loc1_.nowPan.vegetable or _loc1_.nowPan.meat))
  601.       {
  602.          trace("∞º£∞₧Ñ1(∞ò╝∞▒ä+Ω│áΩ╕░+δ│╢∞¥î∞╢ÿ∞₧Ñ)");
  603.          var meterialScore = 80;
  604.          MakeFood("dish2",3,_loc3_,_loc2_,"broil_zzazang");
  605.       }
  606.       else
  607.       {
  608.          BadMeterial();
  609.       }
  610.       _root.nowPan = new FoodTree();
  611.       Vessel_Info("Pan");
  612.       _root.zzazangScore = _loc2_ + meterialScore;
  613.    }
  614. };
  615. BadMeterial = function()
  616. {
  617.    var _loc2_ = _root;
  618.    trace("Ω╕ê∞ºÇ ∞é¼∞Ü┤δô£ ∞ï£∞₧æ");
  619.    trace("--------------------");
  620.    _loc2_.badSound0.stop("badSound0");
  621.    _loc2_.badSound1.stop("badSound1");
  622.    var _loc1_ = random(2);
  623.    _loc2_["badSound" + _loc1_].start();
  624. };
  625. DishLader = function(vesselName, dishName, insName)
  626. {
  627.    var _loc1_ = vesselName;
  628.    var _loc2_ = _root;
  629.    var _loc3_ = insName;
  630.    trace("------------");
  631.    trace(dishName);
  632.    trace(_loc3_);
  633.    trace(_loc2_[_loc3_]._currentframe);
  634.    trace("------------");
  635.    if(dishName == "dish1")
  636.    {
  637.       if(_loc2_[_loc3_]._currentframe == 2)
  638.       {
  639.          trace("∞ò╝∞▒äδ│╢∞¥î" + _loc1_);
  640.          if(_loc1_ == "Pan")
  641.          {
  642.             _loc2_["now" + _loc1_].dish1 = true;
  643.          }
  644.          else
  645.          {
  646.             BadMeterial();
  647.          }
  648.       }
  649.       else
  650.       {
  651.          trace("δ⌐┤" + _loc1_);
  652.          if(_loc1_ == "Pot")
  653.          {
  654.             _loc2_["now" + _loc1_].dish1 = true;
  655.          }
  656.          else
  657.          {
  658.             BadMeterial();
  659.          }
  660.       }
  661.    }
  662.    else if(_loc2_[_loc3_]._currentframe == 2)
  663.    {
  664.       trace("∞╢ÿ∞₧Ñ" + _loc1_);
  665.       _loc2_["now" + _loc1_].dish2 = "chunzang";
  666.    }
  667.    else
  668.    {
  669.       _loc2_["now" + _loc1_].dish2 = "zzazang";
  670.       trace("∞º£∞₧Ñ" + _loc1_);
  671.    }
  672. };
  673. PrintTree = function()
  674. {
  675.    trace("----------- FoodTree ------------");
  676.    trace("vegetable  : " + nowFood.vegetable);
  677.    trace("meat  : " + nowFood.meat);
  678.    trace("noodle  : " + nowFood.noodle);
  679.    trace("garlic  : " + nowFood.garlic);
  680.    trace("chun  : " + nowFood.chun);
  681.    trace("sugar  : " + nowFood.sugar);
  682.    trace("oil  : " + nowFood.oil);
  683.    trace("kettle  : " + nowFood.kettle);
  684.    trace("dish1  : " + nowFood.dish1);
  685.    trace("dish2  : " + nowFood.dish2);
  686.    trace("dish  : " + nowFood.dish3);
  687.    trace("------------------------------");
  688. };
  689. Vessel_Info = function(vesselName)
  690. {
  691.    var _loc1_ = vesselName;
  692.    var _loc2_ = this;
  693.    trace("----------- " + _loc1_ + " ------------");
  694.    trace("vegetable  : " + _loc2_["now" + _loc1_].vegetable);
  695.    trace("meat  : " + _loc2_["now" + _loc1_].meat);
  696.    trace("noodle  : " + _loc2_["now" + _loc1_].noodle);
  697.    trace("garlic  : " + _loc2_["now" + _loc1_].garlic);
  698.    trace("chun  : " + _loc2_["now" + _loc1_].chun);
  699.    trace("sugar  : " + _loc2_["now" + _loc1_].sugar);
  700.    trace("oil  : " + _loc2_["now" + _loc1_].oil);
  701.    trace("kettle  : " + _loc2_["now" + _loc1_].kettle);
  702.    trace("dish1  : " + _loc2_["now" + _loc1_].dish1);
  703.    trace("dish2  : " + _loc2_["now" + _loc1_].dish2);
  704.    trace("dish  : " + _loc2_["now" + _loc1_].dish3);
  705.    trace("wheat  : " + _loc2_["now" + _loc1_].wheat);
  706.    trace("_wheat  : " + _loc2_["now" + _loc1_]._wheat);
  707.    trace("------------------------------");
  708. };
  709. DecoAction = function(vesselName, typeNo)
  710. {
  711.    var _loc1_ = _root;
  712.    trace("∞í░리φü┤δª╜ " + vesselName);
  713.    if(vesselName == "pot")
  714.    {
  715.       _loc1_["vessel_" + nowFood.vessel].gotoAndStop("boil");
  716.    }
  717.    else if(nowPan.vegetable)
  718.    {
  719.       _loc1_["vessel_" + nowFood.vessel].gotoAndStop("broil_vegetable" + typeNo);
  720.    }
  721.    else
  722.    {
  723.       _loc1_["vessel_" + nowFood.vessel].gotoAndStop("broil_chun" + typeNo);
  724.    }
  725. };
  726. GotoEnding = function()
  727. {
  728.    var _loc1_ = _root;
  729.    trace("∞º£∞₧Ñ ∞áÉ∞êÿ : " + _loc1_.zzazangScore);
  730.    trace("δ⌐┤ ∞áÉ∞êÿ : " + _loc1_.noodleScore);
  731.    removeMovieClip(_loc1_.godHand);
  732.    mouse.show();
  733.    if(_loc1_.spiceScore > 30)
  734.    {
  735.       _loc1_.spiceScore = 30 - _loc1_.spiceScore;
  736.    }
  737.    _loc1_.foodScore = _loc1_.zzazangScore + _loc1_.noodleScore + _loc1_.spiceScore;
  738.    if(_loc1_.foodScore > 400)
  739.    {
  740.       gotoAndPlay(2994);
  741.    }
  742.    else if(_loc1_.foodScore <= 400 and _loc1_.foodScore > 300)
  743.    {
  744.       gotoAndPlay(3550);
  745.    }
  746.    else
  747.    {
  748.       gotoAndPlay(4062);
  749.    }
  750. };
  751. nowFood = new FoodTree();
  752. nowPan = new FoodTree();
  753. nowPot = new FoodTree();
  754. DefaultSetting();
  755. MetaCookButton();
  756. _root.dishArrow._visible = false;
  757. _root.dishArrow.stop();
  758.